#include "CSerialPort.h"
#include "Tracker.h"
#include <opencv2/videoio.hpp>
#include <opencv2/opencv.hpp>
#include <iostream>
#include <iomanip>
#include <termios.h>
#include <netinet/in.h>
#include<sys/ioctl.h>
#include <thread>
using namespace std;
using namespace cv;

int main(int argc, char **argv)
{
	Mat frame = imread("/home/ubuntu/桌面/golfbos/source/111-11-40-50.jpg");
	namedWindow("123");

	while(1)
	{
		imshow("123",frame);
		cv::Rect uBox = cv::selectROI("123", frame);
		cout<<uBox.x<<","<<uBox.y<<","<<uBox.width<<","<<uBox.height<<endl;//213,57,304,303
		waitKey(0);
	}
	return 0;
}
